package com.bountytask.service;

import com.bountytask.entity.Task;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TaskService {
    public int updateTask(Task task);

    public Task getTaskById(long id);

    public int takeTaskService(long userId,long taskId);

    public long postTask(Task newTask,long userId);

    public List<Task> getTasksByCondition(String keyword, String category, String campus);

    public List<Task> sortTasks(List<Task> nosortTasks,String condition);

    public int rejectTask(long taskid,long userid);

    public List<Long> getAllOnlineTask();
}
